import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询设施处理维修上报列表
export function getFacilityReportInfoList(query) {
    return request({
        url: '/accept/center/facilityReport/list',
        method: 'get',
        params: query
    })
}

// 获取设施处理维修上报信息
export function getFacilityReport(facilityReportId) {
    return request({
        url: '/accept/center/facilityReport/' + parseStrEmpty(facilityReportId),
        method: 'get'
    })
}

// 新增设施处理维修上报
export function addFacilityReportInfo(data) {
    return request({
        url: '/accept/center/facilityReport/add',
        method: 'post',
        data: data
    })
}

// 修改设施处理维修上报
export function updateFacilityReportInfo(data) {
    return request({
        url: '/accept/center/facilityReport/update',
        method: 'post',
        data: data
    })
}

// 删除设施处理维修上报
export function delFacilityReportInfo(facilityReportId) {
    return request({
        url: '/accept/center/facilityReport/delete/' + facilityReportId,
        method: 'get'
    })
}
